package cut;

public class MethodWithLocalVar {
    public boolean localInt (int a) {
        int b = 0;
        if (a > b)
            return true;
        else  return false;
    }
    public boolean localLong (long a) {
        long b = 0;
        if (a > b)
            return true;
        else  return false;
    }
    public boolean localString (String a) {
        String b = "as";
        if (a.length() > b.length())
            return true;
        else  return false;
    }
    public boolean localStudent (Student a) {
        Student b = new Student(12, "12", 90);
        if (a.getScore() > b.getScore())
            return true;
        else  return false;
    }
    public boolean localArray (int[] a) {
        int[] b = {1, 2, 3};
        if (a[0] > b[1])
            return true;
        else  return false;
    }
    public boolean localEnum (MyEnum a) {
        MyEnum b = MyEnum.ENUM_VALUE_2;
        if (a == b)
            return true;
        else  return false;
    }
}
